package com.itheima.spring.bestpractive.vo.req.assessment;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

/**
* 考核指标信息表
* @TableName assessment_indicator
*/
@Data
@Repository
public class AssessmentIndicatorReqAdminVo {

    private Long indicatorId;

    @NotBlank(message="[指标名称]不能为空")
    @Schema(name = "指标名称")
    @Length(max= 100,message="编码长度不能超过100")
    private String indicatorName;

    @NotBlank(message="[指标类型：定量或定性]不能为空")
    @Schema(name = "指标类型：定量或定性")
    @Length(max= 20,message="编码长度不能超过20")
    private String indicatorType;

    @NotBlank(message="[评分标准描述]不能为空")
    @Schema(name = "评分标准描述")
    private String scoringStandard;

    @NotNull(message="[指标权重]不能为空")
    @Schema(name = "指标权重")
    private BigDecimal weight;

}
